﻿using ConfExpert.Forms.Base;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevTeam;

namespace ConfExpert.Forms.Sistem
{
    public partial class PDKSCalismaSaatleri : XForm
    {
        public PDKSCalismaSaatleri()
        {
            InitializeComponent();
        }

        private void PDKSCalismaSaatleri_Load(object sender, EventArgs e)
        {
            this.Text = "PDKS Çalışma Saatleri";
            gridView1.Init("GetPDKSCalismaSaatleri");
            gridView1.MakeColumnInvisible("PDKSCalismaSaatleriId");
            gridView1.OptionsView.NewItemRowPosition = DevExpress.XtraGrid.Views.Grid.NewItemRowPosition.Bottom;
            gridView1.BestFitColumns();
        }

        private void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            gridView1.EndEditing();
            ExecuteNonQuery("InsPDKSCalismaSaatleri", gridView1.SerializeChanges());
        }
    }
}
